home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 2003 June / macformat-130.iso / mac / Reviewed⁄Demos / Spearhead Demo / demota / pak1.pk3 / models / fx / bh_metal_hard.tik < prev    next >
Encoding:
Text File  |  2002-10-21  |  2.2 KB  |  115 lines

  1. TIKI
  2. setup
  3. {
  4.     scale 1.0
  5.     path models/fx/dummy
  6.     skelmodel dummy2.skd
  7. }
  8.  
  9. init
  10. {
  11.     server
  12.     {
  13.     }
  14.     client
  15.     {
  16.         //cache some stuff used in this effect
  17.         cache bhole_metal.spr // cache the bullet hole shader
  18.         cache bh_metal_spark.spr
  19.         cache models/fx/bh_metal_fastpiece.tik
  20.         cache corona_util_colorable.spr
  21.  
  22.         // sparky spark
  23.         sfx originspawn
  24.         (
  25.             model bh_metal_spark.spr
  26.             model ""
  27.             model ""
  28.             count 2
  29.             alpha 0.5
  30.             angles 0 0 random 360
  31.             life 0.05 0.1
  32.             scale 0.3
  33.             scalerate 6
  34.             fade
  35.         )
  36.  
  37.         sfx originspawn
  38.         (
  39.             model corona_util_colorable.spr
  40.             model ""
  41.             model ""
  42.             count 1
  43.             life .1
  44.             scale .25
  45.             color 1 1 .5
  46.             fade
  47.         )
  48.         
  49.         // teeny tiny dynamic light
  50. //        sfx blockdlight 8 0.05 additive
  51. //        (
  52. //            color 0.5 0.4 0.3
  53. //            colorvelocity -0.5 -0.5 -0.5
  54. //            scalerate -0.6
  55. //        )
  56.  
  57.         // quickly dissapearing sparks
  58.         sfx originspawn
  59.         (
  60.             model models/fx/bh_metal_fastpiece.tik
  61.             alpha 0.5
  62. //            offsetalongaxis random 3 crandom 1 crandom 1
  63.             count 5
  64.             align
  65.             velocity 150
  66.             randvelaxis random 100 crandom 200 crandom 200
  67.             accel 0 0 -800
  68.             life 0.05 0.2
  69.             scalemin 0.8
  70.             scalemax 1.4
  71.             scalerate -1.0
  72. //            fadedelay 0.1
  73.         )
  74.  
  75.         // slightly delayed, quickly dissapearing sparks
  76.         delayedsfx 0.1 originspawn
  77.         (
  78.             model models/fx/bh_metal_fastpiece.tik
  79.             alpha 0.5
  80. //            offsetalongaxis random 3 crandom 1 crandom 1
  81.             count 5
  82.             align
  83.             velocity 150
  84.             randvelaxis random 100 crandom 200 crandom 200
  85.             accel 0 0 -800
  86.             life 0.05 0.2
  87.             scalemin 0.8
  88.             scalemax 1.4
  89.             scalerate -1.0
  90. //            fadedelay 0.1
  91.         )
  92.         
  93.         // small bit of lingering smoke
  94.         sfx originspawn
  95.         (
  96.             volumetric
  97.             model bulletimpact    // sets the type of smoke
  98.             life 10        // amount of smoke
  99.             scale 1.5    // radius
  100.             alpha 0.2    // density
  101.             color 0.8 0.8 0.8    // RBG color of the smoke
  102.             velocity 2    // base velocity away from the surface
  103.             randvelaxis random 6 0 0    // velocity offset
  104.             offsetalongaxis random 20 crandom 4 crandom 4    // positional offset
  105. //            collision // turn on collision detection
  106.             spritegridlighting
  107.         )
  108.     }
  109. }
  110.  
  111. // This section is just needed to be a valid tiki file
  112. animations
  113. {
  114.     idle dummy2.skc
  115. }